package com.goodflower.goodflower.util;


import okhttp3.OkHttpClient;
import okhttp3.Request;

public class HttpUtil {
    public static  void sendOkHttpRequest(String address,okhttp3.Callback callback){


        OkHttpClient client = new OkHttpClient();//1.创建一个okhttp client
        Request request = new Request.Builder().url(address).build();//创建一个request
        client.newCall(request).enqueue(callback); //３.发起http请求(get)
    }
}
